FROM harbor.xhaihua.cn/library/nodejs:10.14.2

LABEL MAINTAINER="xhaihua 851628816@qq.com"

COPY scripts/   / 

COPY  file/     /




RUN  apk update                      && \
     apk upgrade                     && \
     apk add "openjdk8~=8.191" sudo  && \
     addgroup -g 1000 jenkins        			&& \
     adduser  -u 1000 -G jenkins -D jenkins 		&& \
     mkdir -p /opt/app/jenkins/home       		&& \
     chown -R jenkins:jenkins /opt/app/jenkins/home     && \
     cat /cacert.pem >> /etc/ssl/certs/ca-certificates.crt   && \
     rm -f /file/cacert.pem
     

ENTRYPOINT ["/run.sh"]




